/**
 * 
 */
package design_pattern.visitor;

/**
 * @author linzq
 *
 */
public class Client {

  public static void main(String[] args) {
    ObjectStructure aObjects = new ObjectStructure();
    Visitor visitorA = new VisitorA();
    aObjects.add(new NodeA());
    aObjects.add(new NodeB());

    aObjects.action(visitorA);
  }
}
